package com.distribute.pojo.Task;

import com.distribute.pojo.enums.TaskType;

import java.util.List;

/**
 * @author Zhen
 * @version 1.0
 * @description: TODO
 * @date 2025/7/4 14:24
 */
public class ConditionsTaskDefinition extends TaskDefinition {

    private ConditionsTaskParams taskParams;

    private TaskType taskType = TaskType.CONDITIONS;

    public TaskType getTaskType() {
        return taskType;
    }

    public void setTaskType(TaskType taskType) {
        this.taskType = taskType;
    }

    public ConditionsTaskParams getTaskParams() {
        return taskParams;
    }

    public void setTaskParams(ConditionsTaskParams taskParams) {
        this.taskParams = taskParams;
    }

    static class ConditionsTaskParams {

        private List localParams;

        private List resourceList;

        private ConditionsParams dependence;

        private Object conditionResult;

        public List getLocalParams() {
            return localParams;
        }

        public void setLocalParams(List localParams) {
            this.localParams = localParams;
        }

        public Object getConditionResult() {
            return conditionResult;
        }

        public void setConditionResult(Object conditionResult) {
            this.conditionResult = conditionResult;
        }

        public ConditionsParams getDependence() {
            return dependence;
        }

        public void setDependence(ConditionsParams dependence) {
            this.dependence = dependence;
        }

        public List getResourceList() {
            return resourceList;
        }

        public void setResourceList(List resourceList) {
            this.resourceList = resourceList;
        }
    }
    static class ConditionsParams {

        private String relation;

        private List dependTaskList;

        public String getRelation() {
            return relation;
        }

        public void setRelation(String relation) {
            this.relation = relation;
        }

        public List getDependTaskList() {
            return dependTaskList;
        }

        public void setDependTaskList(List dependTaskList) {
            this.dependTaskList = dependTaskList;
        }
    }
}


